package com.Mapper;

import com.bean.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    List<User> selectUser(@Param("id") String id,@Param("pwd") String pwd);

    void addParking(Parking parking);

    void updateParking(String carNumber);

    Parked selectParked(String carNumber);
    List<VipUser> selectVipUser(String carNumber);

    void updateParked(@Param("carNumber") String carNumber, @Param("cost") Integer cost);
    void deleteParking(String carNumber);

    List<Parking> selectTodayIn(@Param("startDate") String startDate,@Param("endDate") String endDate);
    List<Parked> selectTodayOut(@Param("startDate") String startDate,@Param("endDate") String endDate);

    Rule selectRule();
    void UpdateRule(Rule rule);

    void insertNotice(Notice notice);

    List<Parking> userSelect(String number);

    void addVipuser(VipUser user);

    List<Notice> selectNotices();

    List<VipUser> selectVip(String phone);

}
